package org.iweb.ui.company;

import java.util.Map;

import org.iweb.init.RegisterFactory;

@SuppressWarnings({"rawtypes"})
public class CompanyFactory {

	private static CompanyFactory instance;
	
	public Map<Company, Class> getCompanies(){
		return getRegister().getCompanies();
	}
	
	protected CompanyRegister getRegister(){		
		return (CompanyRegister) RegisterFactory.getInstance().getRegisterByName("CompanyRegister");		
	}

	public static CompanyFactory getInstance() {
		if(instance==null)
			instance=new CompanyFactory();
		return instance;
	}
	
}
